<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>租赁补贴统计报表</h3></div>
                <div class="fr"></div>
            </div>
            <div class="line2">
                <!-- 编辑按钮组 -->
                <div class="fl form-btn-group btn-group-edit">
                    <button onclick="action_export()" class="btn-save btn-highlight">导 出</button>
                    <span>或</span>
                    <a onclick="history.back(-1);" class="linkBtn btn-abort" href="javascript:void(0);">返回</a>
                </div>
                <!-- 保存按钮组 -->
                <div class="fl form-btn-group btn-group-save hidden">
                    <button onclick="action_save();" class="btn-save btn-highlight">保 存</button>
                    <span>或</span>
                    <a class="linkBtn btn-abort" onclick="action_abort();" href="javascript:void(0);">放弃</a>
                </div>
                <div class="fr" style="margin-right:100px;">
                    <form class="search-form" method="post" action="">
                        <label style="padding:0 5px;">统计时段</label>
                        <select name="year">
                            <volist name="years" id="vo" key="index">
                                <option <if condition="$vo eq $year">selected="selected"</if> value="{$vo}">{$vo}年</option>
                            </volist>
                        </select>

                        <button class="btn-normal" type="submit">查 询</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box2">
        <div id="zlbt-report" style="border-bottom:0;padding:15px 0 0 0;">
            <table class="form-report">
                <thead>
                    <tr>
                        <th width="25%">补贴季度</th>
                        <td width="25%">正常发放金额</td>
                        <td width="25%">逾期发放金额</td>
                        <td>总共发放金额</td>
                    </tr>
                </thead>
                <tbody>
                    <volist name="zlbt" id="vo" key="index">
                        <tr class="even">
                            <th>{$vo.name}</th>
                            <th>
                                <a href='/admin/butie/index?where={$vo.normal.where}'>{$vo.normal.value}</a>
                            </th>
                            <th>
                                <a href='/admin/butie/index?where={$vo.overdue.where}'>{$vo.overdue.value}</a>
                            </th>
                            <th>
                                <a href='/admin/butie/index?where={$vo.total.where}'>{$vo.total.value}</a>
                            </th>
                        </tr>
                    </volist>
                </tbody>
                <tfoot>
                    <tr>
                        <th>总计：</th>
                        <th>{$total['normal']}</th>
                        <th>{$total['overdue']}</th>
                        <th>{$total['total']}</th>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>
</div>
<script>
    function action_export(){
        var year = $("select[name=year]").val();
        location.href='/admin/reportZlbt/ajax_export?year='+year;

    }
</script>
<include file="Public:footer" />
